/*
 ============================================================================
 Name		: RtWeiboApp.h
 Author	  : hou maoqing
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CRtWeiboApp declaration
 ============================================================================
 */

#ifndef RtWeiboApp_H
#define RtWeiboApp_H

#include "RtBase.h"
#include "RtXmlApp.h"
#include "RtWeiboMainView.h"
#include "RtWeiboEngine.h"
#include "RtView.h"
#include "RtXmlView.h"

CRtUiManager* CreateUiManager();

class CRtWeiboApp : public CRtXmlApp
	{
public:
	
	CRtWeiboApp();
	virtual ~CRtWeiboApp();
	
	virtual void InitApplication();
	virtual void Release();
	
	static CRtWeiboApp* Static();

	CRtWeiboEngine* GetWeiboEngine();

	DEFINE_ACTION(CRtWeiboApp,ActivateDemoView);
	DEFINE_ACTION(CRtWeiboApp,ShowAboutDlg);
	DEFINE_ACTION(CRtWeiboApp,PostUpdate);

	DEFINE_ACTION(CRtWeiboApp,ActivateIndexView);
	DEFINE_ACTION(CRtWeiboApp,ActivateMessageView);
	DEFINE_ACTION(CRtWeiboApp,ActivateFriendView);
	DEFINE_ACTION(CRtWeiboApp,ActivatePublicView);
	DEFINE_ACTION(CRtWeiboApp,ActivateMoreView);
	
private:
	virtual bool HandleMessage(CRtMessage* pMsg);
	
	void SetUiStyle();

private:
	CRtWeiboMainView* m_pRtWeiboMainView;

	CRtWeiboEngine* m_pWeiboEngine;
	};

#endif // RtWeiboApp_H
